package com.xuanyang.dormrepair.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @AUTHOR soft
 * @DATE 2019/5/22 21:59
 * @DESCRIBE 维修请求状态
 */
@Getter
@AllArgsConstructor
public enum RepairStatus {

    CANCEL("已取消", 0),
    WAITING("等待中", 1), // 默认
    DOING("维修中", 2),
    COMMENT("待评价", 3),
    FINISH("已完成", 4);

    @JsonValue
    private String name;
    @EnumValue
    private Integer code;
}
